#!/bin/bash

for n in 8 7 6 5 4 3 2 1
do
    echo "Stopping essex$n"
    VBoxManage controlvm essex$n acpipowerbutton 2>/dev/null
    sleep 5
done
  
